﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Public
{
    public class Purchasing
    {
        private int purchasingId;
        private Product product;
        private int productId;
        private float productTotal;

        public float ProductTotal
        {
            get { return productTotal; }
            set { productTotal = value; }
        }

        public int ProductId
        {
            get { return productId; }
            set { productId = value; }
        }
        private int invoiceId;

        public int InvoiceId
        {
            get { return invoiceId; }
            set { invoiceId = value; }
        }
     

        public Product Product
        {
            get { return product; }
            set { product = value; }
        }
        private Invoice invoice;

        public Invoice Invoice
        {
            get { return invoice; }
            set { invoice = value; }
        }
        private int numOfProduct;

        public Purchasing() { }

        public Purchasing(Product p, Invoice i)
        {
            this.product = p;
            this.invoice = i;
        }

        public int NumOfProduct
        {
            get { return numOfProduct; }
            set { numOfProduct = value; }
        }

        public int PurchasingId
        {
            get { return purchasingId; }
            set { purchasingId = value; }
        }
    }
}
